<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableOrders extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('orders', function (Blueprint $table) {
            $table->increments('order_id');
            $table->integer('stadium_id');
            $table->string('order_sn',18);
            $table->integer('user_id');
            $table->char('sportname',20);
            $table->string('stadium_name');
            $table->integer('usetime');
            $table->char('number');
            $table->smallInteger('status');
            $table->string('info',100);
            $table->smallInteger('money');
            $table->integer('validate');
            $table->integer('pubtime');
            $table->integer('bean');
            $table->integer('record');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('orders');
    }
}
